package com.uplift.mgt.building.service;

import com.uplift.common.base.ServiceReslut;
import com.uplift.mgt.building.model.RealtyInfo;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.multipart.MultipartHttpServletRequest;

import java.util.List;
import java.util.Map;

public interface IRealtyInfoService {
	public List<Map<String, Object>> queryRealtyInfo(RealtyInfo realtyInfo);

	public Map<String, Object> queryRealtyRoom(RealtyInfo realtyInfo);

	public List<Map<String, Object>> queryAllRealtyInfo(RealtyInfo realtyInfo);

	@Transactional
	public ServiceReslut addRealtyInfo(RealtyInfo realtyInfo) throws Exception;

	@Transactional
	public ServiceReslut updateRealtyInfo(RealtyInfo realtyInfo) throws Exception;

	@Transactional
	public ServiceReslut deleteRealtyInfo(RealtyInfo realtyInfo);

	/**
	 * 导入用户
	 * @param request
	 * @return
	 */
	public void importRealty(MultipartHttpServletRequest request);

	/**
	 * 导入建筑
	 * @param request
	 */
	public void importRealtyPic(MultipartHttpServletRequest request);
}
